package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.Enrollment;
import com.bingxue.edu.management.education.model.entity.Student;
import com.mybatisflex.annotation.RelationManyToOne;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 报名信息详情返回
 *
 * @author zq
 * @since 2024/08/21 00:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "报名信息详情返回")
public class EnrollmentDetailResp extends Enrollment {

    @Schema(description = "学生信息")
    private Student student;

    @Schema(description = "班级信息")
    private ClassDetailResp classInfo;

    @Schema(description = "课次信息")
    private List<EnrollLessonResp> enrollLessonList;

    @Schema(description = "课程顾问")
    @RelationManyToOne(selfField = "sellerId", targetTable = "base_employee", targetField = "id", valueField = "name")
    private String sellerName;
}
